<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui">  
  
    <h:head>  
  		<title>Prime Faces Test!!!</title>
    </h:head>  
      
    <h:body>
      <p:tabView>  
      <p:tab title="Godfather Part I - Test ASDASDASDASD">  
		<h:form id="addCustomer">
		    <p:messages id="messages" autoUpdate="true"/>    
	        <h:panelGrid border="1" columns="2">
	            <h:outputText value="First Name:"/>
	            <h:inputText id="customerFirstName" value="#{maintainCustomer2.customer.firstName}" required="true"/>
	            <h:outputText value="Last Name:"/>
	            <h:inputText value="#{maintainCustomer2.customer.lastName}" required="true" requiredMessage="Kaka!!!"/>
	            <h:commandButton action="#{maintainCustomer2.addCustomer}" value="Add Customer"/>
	            <h:commandButton action="#{maintainCustomer2.sayHello}" value="Say Hello"/>
	        </h:panelGrid>
  		</h:form>
  
  		<h:form id="deleteCustomer">
	    <p:dataTable id="basic" var="customer" value="#{maintainCustomer2.customers}">  
	        <p:column>  
	            <h:commandButton action="#{maintainCustomer2.deleteCustomer}" value="Delete">
	            	<f:setPropertyActionListener value="#{customer}" target="#{maintainCustomer2.customerToDelete}" />  
	            </h:commandButton> 
	        </p:column>  
	        <p:column headerText="First Name">  
	            <h:outputText value="#{customer.firstName}" />  
	        </p:column>  
	        <p:column headerText="Last Name">  
	            <h:outputText value="#{customer.lastName}" />  
	        </p:column>  
	    </p:dataTable>  
		</h:form>
    </p:tab>  
  
    <p:tab title="Godfather Part II">  
        <h:panelGrid columns="2" cellpadding="10">  
            <p:graphicImage value="/images/godfather/godfather2.jpg" />  
            <h:outputText value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream.  
            In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,  
            killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows."/>  
        </h:panelGrid>  
    </p:tab>  
  
    <p:tab title="Godfather Part III">  
        <h:panelGrid columns="2" cellpadding="10">  
            <p:graphicImage value="/images/godfather/godfather3.jpg" />  
            <h:outputText value="After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family.  
                Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate."/>  
        </h:panelGrid>  
    </p:tab>  
  
</p:tabView>  
          
    </h:body>  
</html>  